{include file="pageheader"}
<div class="container-fluid" style="padding:0">
  <div class="row" style="margin:0">
    <div class="col-md-12 col-sm-12 col-lg-12" style="padding:0;">
      <div class="panel panel-default">
        <div class="panel-heading">图文回复添加</div>
        <form action="{url('article_edit')}" method="post" enctype="multipart/form-data" role="form">
        <table id="general-table" class="table table-hover ectouch-table">
         <tr>
            <td width="200">标题:</td>
            <td><div class="col-md-4">
                <input type='text' name='data[title]' value="{$article['title']}" class="form-control input-sm" />
              </div></td>
          </tr>
          <tr>
            <td width="200">作者（选填）:</td>
            <td><div class="col-md-4">
                <input type='text' name='data[author]' value="{$article['author']}" class="form-control input-sm" />
              </div></td>
          </tr>
          <tr>
            <td width="200">封面:</td>
            <td><div class="col-md-4">
                <input type="text" value="{$article['file']}" name="file_path" class="form-control input-sm">
                <input type='file' name="pic" />
                <span class="help-block">大图片建议尺寸：900像素 * 500像素</span>
                </div>
                <div clas="col-md-1">
                <a href="#inline" class="glyphicon glyphicon-picture ectouch-fs16 fancybox" title="预览"></a>
              </div></td>
          </tr>
          <tr>
            <td width="200">封面图片显示在正文中:</td>
            <td><div class="col-md-4 btn-group" data-toggle="buttons">
                <label class="btn btn-primary {if $article['is_show'] == 1}active{/if}">
                  <input type="radio" name="data[is_show]" value="1" {if $article['is_show'] == 1}checked{/if} />{$lang['yes']}
                </label>
                <label class="btn btn-primary {if $article['is_show'] == 0}active{/if}">
                  <input type="radio" name="data[is_show]" value="0" {if $article['is_show'] == 0}checked{/if} />{$lang['no']}
                </label>
              </div></td>
          </tr>
          <tr>
            <td width="200">摘要:</td>
            <td><div class="col-md-4">
                <textarea class="form-control" name="data[digest]">{$article['digest']}</textarea>
              </div></td>
          </tr>
          <tr>
            <td width="200">正文:</td>
            <td><div class="col-md-9"><?php echo create_html_editor('content', html_out($article['content']));?></div></td>
          </tr>
          <tr>
            <td width="200">原文链接:</td>
            <td><div class="col-md-4">
                <input type='text' name='data[link]' value="{$article['link']}" class="form-control input-sm" />
                <span class="help-block">链接前请带上http或者https</span>
              </div></td>
          </tr>
          <tr>
            <td width="200">排序:</td>
            <td><div class="col-md-2">
                <input type='text' name='data[sort]' value="{$article['sort']}" class="form-control input-sm" />
              </div></td>
          </tr>
          <tr>
            <td width="200"></td>
            <td><div class="col-md-4">
                <input type="hidden" name="id" value="{$article['id']}" />
  				<input type="submit" value="{$lang['button_submit']}" class="btn btn-primary" />
                <input type="reset" value="{$lang['button_reset']}" class="btn btn-default" />
              </div></td>
          </tr>
      </table>
      </form>
    </div>
    </div>
  </div>
</div>
<div class="panel panel-default" style="display: none;" id="inline">
  <div class="panel-body">
     <img src="{$article['file']}" class="img-responsive" />
  </div>
</div>
{include file="pagefooter"}